package com.ruoyi.kis.util;

import org.springframework.beans.factory.annotation.Value;
import sun.misc.BASE64Encoder;

import java.util.Base64;

/**
 * @Author: zhanglm
 * @CreateDate: 2025-06-19 11:01
 * @FullNameClass: com.ruoyi.kis.util.BASE64Util
 * @Description:
 */
public class BASE64Util {

    private BASE64Util() {}
    @Value("${wms.username}")
    private static String userName;
    @Value("${wms.password}")
    private static String password;
    public static void main(String[] args) {
        String encodedAuth = Base64.getEncoder().encodeToString((userName  + password).getBytes());
        System.out.println(encodedAuth);
    }
}
